﻿using System.ComponentModel.DataAnnotations;

namespace TokenPay.Models
{
    public class TransferViewModel
    {
        /// <summary>
        /// 外部订单号
        /// </summary>
        [Display(Name = "外部订单号")]
        [Required(ErrorMessage = "{0}为必传参数")]
        public string OutOrderId { get; set; } = null!;

        /// <summary>
        /// 虚拟币数量
        /// </summary>
        [Display(Name = "虚拟币数量")]
        [Required(ErrorMessage = "{0}为必传参数")]
        public decimal Amount { get; set; }

        /// <summary>
        /// 接收方地址
        /// </summary>
        [Display(Name = "接收方地址")]
        [Required(ErrorMessage = "{0}为必传参数")]
        public string ToAddress { get; set; }

        /// <summary>
        /// 币种
        /// </summary>
        [Display(Name = "币种")]
        [Required(ErrorMessage = "{0}为必传参数")]
        //[(ErrorMessage = "{1}不是有效的{0}")]
        public string Currency { get; set; }

        /// <summary>
        /// 参数签名
        /// </summary>
        public string? Signature { get; set; }
    }
}
